package com.cloud.salon.client.business.service;

import com.cloud.salon.common.base.vo.business.PayVO;
import com.cloud.salon.common.base.vo.business.RecordInfoVO;
import com.cloud.salon.common.crud.service.CRUDService;
import com.cloud.salon.common.base.entity.business.Item;
import com.cloud.salon.common.base.response.Res;
import com.cloud.salon.common.base.entity.business.Record;
import com.cloud.salon.common.base.vo.business.PlaceOrderVO;

import java.util.List;

/**
 * @Description 记录Service抽象接口
 * @Author wolf--LZH
 * @CreateDate 2019/4/10 0010 下午 1:30
 */
public interface RecordService extends CRUDService<Record> {

    /*
     * @Description 获取订单信息VO列表
     * @Author wolf--LZH
     */
    Res<List<RecordInfoVO>> findAllInfo();
    
    /*
     * @Description 下单
     * @Author wolf--LZH
     */
    Res<Record> placeOrder(PlaceOrderVO placeOrderVO);

    /*
     * @Description 计算总价
     * @Author wolf--LZH
     */
    Res<String> calcTotal(PlaceOrderVO placeOrderVO);

    /*
     * @Description 进行付款
     * @Author wolf--LZH
     */
    Res pay(PayVO payVO);
}
